.historyContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.historyList {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 48px; /* 为分页器留出空间 */
}

.paginationWrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: center;
}

:global(.ant-modal-confirm-btns) {
  text-align: end !important;
}

.historyItem {
  padding: 12px 16px !important;
  cursor: pointer;
  transition: all 0.3s ease;

  :global(.ant-list-item-action) {
    display: none;
  }
}

.historyItem:hover {
  background: rgba(0, 0, 0, 0.03);
  padding-right: 4px !important;

  :global(.ant-list-item-action) {
    display: block;
    margin-inline-start: 10px !important;
  }
}

.active {
  background: rgba(24, 144, 255, 0.1) !important;
}

.active :global(.ant-list-item-meta-title) {
  color: var(--primary-color) !important;
  font-weight: 500;
}

.active :global(.ant-list-item-meta-description) {
  color: rgba(0, 0, 0, 0.65) !important;
}

.active :global(.anticon) {
  color: var(--primary-color) !important;
}

.active :global(.ant-tag) {
  background: rgba(24, 144, 255, 0.1) !important;
  border: 1px solid var(--primary-color);
  color: var(--primary-color) !important;
}

.deleteIcon {
  color: #999;
  font-size: 16px;
  transition: color 0.3s;
}

.deleteIcon:hover {
  color: #ff4d4f;
}

.itemTitle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.itemTitle > span {
  flex: 1;
  min-width: 0;
  color: rgba(0, 0, 0, 0.85);
}

.itemTag {
  flex-shrink: 0;
  background: #f5f5f5 !important;
  border: 1px solid #d9d9d9;
  color: rgba(0, 0, 0, 0.65) !important;
}

.itemDesc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(0, 0, 0, 0.45);
}